package com.chaodev.base.service;

import com.github.pagehelper.PageInfo;
import com.chaodev.base.dto.LunBoDto;
import com.chaodev.base.model.ClockDistance;
import com.chaodev.base.model.LunBo;
import com.chaodev.base.model.Task;
import com.chaodev.base.model.TaskComplete;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/18 14:16
 **/
public interface CommService {
    List<Task> getMyWaitTask(Task task);

    List<Task> getMyDoneTask(Task task);

    void completeTask(TaskComplete task);

    Task getTask(Task task);

    /**
     * 根据任务获得具体的数据
     *
     * @param task
     * @return
     */
    Map<String, Object> getData(Task task);

    /**
     * 获取志愿者和活动统计数据
     *
     * @param map
     * @return
     */
    Map<String, Object> getVolunteerActivityStatistic(Map<String, Object> map);

    PageInfo<LinkedHashMap<String, Object>> getLunBoPageList(LunBoDto dto);

    void saveLunBo(LunBo lunBo);

    void delLunBo(List<Integer> ids);

    ClockDistance getClockDistance(String departId, String csys);

    void saveClockDistance(ClockDistance distance);

    void delClockDistance(List<Integer> ids);
}
